<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ include file="init.jsp"%>

<ts:pageTemplate>
	<div id="page-wrapper">
		<div id="absolute-wrapper">
			<form method="post" id="newTest" action="/FaTestingSystem/editTest"
				modelAttribute="test" testId="${requestedTest.id}">
				<script type="text/javascript"
					src="/FaTestingSystem/resources/js/constructor.js"></script>
				<textarea name="title" class="input-xxlarge input-xxlarge-1">${requestedTest.title}</textarea>
				<div id="questions">
					<c:forEach items="${requestedTest.questions}" var="question"
						varStatus="status">
						<question> <textarea name="question"
							class="input-xxlarge input-xxlarge-1 input-xxlarge-2">${question.questionValue}</textarea>
						<div id="answers">
							<c:forEach items="${question.variants}" var="variant"
								varStatus="status">
								<answer> <label class="checkbox pull-left"> <input
									type="checkbox" name="variantTruth"> <span></span>
								</label> <textarea name="variantValue"
									class="input-xxlarge input-xxlarge-2 input-xxlarge-3">${variant.value}</textarea>

								</answer>
							</c:forEach>
						</div>
						</question>
					</c:forEach>
				</div>
				<button class="btn btn-warning pull-right" type="submit">EDIT</button>
			</form>
		</div>
	</div>

</ts:pageTemplate>







